I developed a project with separate layers. I used Web-API to show how to expose a BLL method as API and called it from UI layer. I executed a SP in DAL .
Exception-handling across each layer and bubbling the message up the layers all the way to UI and displaying it using JQuery error handler.
$(document).ready(function () { $('test').click(function () { $.ajax({ url:"http://localhost:53945/api/CollegeDetails/GetCollegeList", type: "GET", error: function (response) { }, success: function (response) { } }); }) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)