Author: Marinko Spasojevic

React with .NET Core and MySQL – Handling PUT Request in React

In the previous parts, we have covered many different React features. The way to create the input controls from the configuration object and validation of those controls are just some of the features we have covered. These features will be useful in this part of the series where we send the PUT request towards the server in order to update our entity object. So, let’s dive right into it. For the complete navigation and all the basic instructions of the React series, check out: Introduction to the React series. For the previous part check out: Form Validation and Handling POST...

Read More

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 rewrite it in an async manner. In Part 4 of the series, we have created Generic Repository Pattern and in Part 5 and Part 6 the Controller with Actions that consumes that repository. We recommend reading those articles if you are not familiar with Generic Repository Pattern or if you find any of...

Read More

React with .NET Core and MySQL – Form Validation and Handling POST Request

As a continuation of the previous part, we are going to implement form validation and to create a new owner entity by sending a POST request towards our .NET Core Web API server. In the CreateOwner component, we pass the handleChangeEvent() function to the Input component. We are going to use this function to enable two-way binding and to validate our input fields. Therefore, the implementation and sending POST request are what we aim for in this post. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction...

Read More

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 in losing too much time if we don’t know how to do it properly. In this article, we are going to show how to use the DinkToPDF library to easily generate PDF documents while working on the .NET Core Web API project. So, without further ado, let’s dive right into the fun part. You can download the source code for this article...

Read More

React with .NET Core and MySQL – Dynamic Form Creation and Modal Components

In this post, we are going to create a new form component for the post actions and modal components to display success and error messages. We are going to reuse them in every parent component that needs those modal components. Furthermore, we are going to create all the input fields from the config file dynamically, since we want to make our code reusable. So, let’s start. If you want to see all the basic instructions and complete navigation for the .NET Core series, check out the following link: Introduction to the .NET Core series. For the complete navigation and all the...

Read More