DTO and AutoMapper in asp.net core web api with example
DTO and AutoMapper in asp.net core web api with example Create Model Classes(Author, Book, AuthorDTO, BookDTO) public class Author { public int id { get; set; } public string name { get; set; } public string address { get; set; } public string mobile {...
How to Configure Swagger UI with ASP.Net Core REST Services
How to Configure Swagger UI with ASP.Net Core REST Services Step1: Install Swashbuckle.AspNetCore package from NuGet Package Manager Step 2: Update Startup.cs using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using...
How to create React Form | Simplest Approach
How to create React Form Example 1: import React, { Component } from 'react' export default class Form1 extends Component { constructor(props){ super(props); this.state={value:''}; this.handlesubmit=this.handlesubmit.bind(this);...
How to use useState in react Forms | Login Example
How to useState in react Forms | Login Example Note: React Hook "useState" cannot be called in a class component. React Hooks must be called in a React function component or a custom React Hook function. import React, { Component, useState } from 'react' export...