@manhng

Welcome to my blog!

WinForms + RestSharp + ASP.NET Web API 2

February 22, 2020 15:30

ASP.NET Web API 2, RestSharp and Model Error Messages

CallerRepository class

static void Main(string[] args)
{
    EmployeeInfo model = new EmployeeInfo();
    CallerRepository caller = new CallerRepository();
    try
    {
        var response = caller.Get();
        foreach (var res in response)
        {
            Console.WriteLine($"{res.Id} {res.EmpNo} {res.EmpName} {res.Salary} {res.DeptName} {res.Designation}");
        }
    }
    catch (Exception ex)
    {
        Console.WriteLine($"Error Occured " +
            $"{ex.Message}");
    }
    Console.ReadLine();
}

https://www.dotnetcurry.com/aspnet/1419/handle-webapi-restsharp-model-error-messages

Okta

October 24, 2019 21:42

Okta (edit)

ASP.NET MVC 5 and ASP.NET Web API 2 (Northwind database)
Backend Web API Tutorial
REST API with Attribute Routing in ASP.NET Web API 2
Build a CRUD App with ASP.NET MVC and Entity Framework Code First
A tutorial to build a CRUD application with ASP.NET Web API 2 and Vue.js
Simple CRUD app written in ASP.NET MVC 4.x with an Angular front end
Secure Your ASP.NET Core App with OAuth 2.0
A CRUD Application built using ASP.NET Core 2.2 and SQLite
React components & helpers that are used in several places

Categories

Recent posts