Code Maze Author

Marinko Spasojević

Hi, my name is Marinko Spasojevic. Currently, I work as a full-time .NET developer and my passion is web application development. Just getting something to work is not enough for me. To make it just how I like it, it must be readable, reusable, and easy to maintain. Prior to being an author on the CodeMaze blog, I had been working as a professor of Computer Science for several years. So, sharing knowledge while working as a full-time developer comes naturally to me.
Also find me here:


MY ARTICLES:

C# Basics – Development Environment Setup

In this article, we are going to talk about what IDE is and how we can use Visual Studio to create a new project. Development Environment Setup (Current article) Data Types, Declarations and Variable Definitions Operators in C# Type Conversion Input and Output in C#...

Global Error Handling in ASP.NET Core Web API

The exception-handling features help us deal with unforeseen errors that could appear in our code.  To handle exceptions we can use the try-catch block in our code as well as finally keyword to clean up resources afterward. [sc name="patreon-source-code"...

JWT Authentication in ASP.NET Core Web API

Securing a web application is one of the most important jobs to do and usually one of the hardest things to pull off. In this series, we are going to learn how to implement JWT authentication in ASP.Net Core Web API on the server-side and Angular on the client side....

Implementing Asynchronous Generic Repository in ASP.NET Core

In this post, we are going to convert the synchronous code to asynchronous inside ASP.NET Core. First, we are going to learn a bit about asynchronous programming and why should we write async code. Then we are going to use our project from the .NET Core series and...

How to Easily Create a PDF Document in ASP.NET Core Web API

Let’s imagine that we have a .NET Core Web API project in which we need to generate a PDF report. Even though it shouldn’t suppose to be too hard to do something like that, we could end up losing too much time if we don’t know how to do it properly. In this article,...

ASP.NET Core Web API Best Practices

In this post, we are going to write about what we consider to be the best practices while developing the .NET Core Web API project. How we can make it better and how to make it more maintainable. While we are working on a project, our main goal is to make it work as...

ASP.NET Core Web API – Linux Deployment

After the IIS deployment, the last part of this series is the .NET Core Linux deployment. We use Ubuntu 16.04 Linux version on our VM, but you may use any version you want. Whether you want to deploy an application to the local VM with the Linux OS or to the VM you...

ASP.NET Core Web API – IIS Deployment

Before we start the deployment process, we would like to point out one important thing. We should always deploy an application in the production environment as soon as we start with development. That way we are able to observe how the application behaves in a...

Working with Delete Requests in Angular

To finalize the coding part of the series, we are going to implement the logic for deleting the entity. To do that, we are going to create a form to support this action and send the DELETE request to our server. For the complete navigation and all the basic...

Handling PUT Requests with Angular and ASP.NET Core Web API

In this post, we are going to show you how to handle the PUT requests with Angular while updating the resources from the .NET Core Web API server app. Without further ado, let’s dive right into it. For the complete navigation and all the basic instructions of the...

Angular Input and Output Decorators and Directives

Angular Input and Output decorators are very important while establishing a relationship between parent and child components in our applications. While developing our project, sometimes our components may become large and hard to read. So, it is always a good choice...

Angular Error Handling

While sending requests to our web API server, we can get an error in response. Therefore, using Angular error handling to handle those errors while sending HTTP requests is a must. That’s exactly what we are going to do in this post. If we get the 404 or the 500...

Angular Lazy Loading

As a continuation of a previous post (where we learned how to use subscription), we will now implement that subscription to our HTTP requests to display the data on the page. Furthermore, we are going to use the advantage of  Angular Lazy Loading, by using another...

Angular HttpClient, Services and Environment Files

While sending HTTP requests to our server, we need to use the Angular HttpClient. Of course, we may handle all the HTTP requests from every component and process the response as well, but it is not a good practice. It is much better to make the repository for your...

Angular Components and Project Preparation

Angular project preparation can vary from project to project and from version to version, and this article is dedicated to that topic. Creating the server part (.NET Core Web API part) is just half of the job we want to accomplish. From this point onwards, we are...

ASP.NET Core Web API – Post, Put, Delete

In the previous post, we have handled different GET requests with the help of a DTO object. In this post, we are going to create POST PUT DELETE requests and by doing so we are going to complete the server part (.NET Core part) of this series. Let’s get into it....