bhrugen / BulkyBook_old

Udemy Course - Complete Guide to ASP.NET Core 3.1 MVC
https://bulkybook.azurewebsites.net
65 stars 71 forks source link

Getting NullReferenceException on IActionResult GetAll() in CoverTypeController.cs #3

Closed theahmadchand closed 3 years ago

theahmadchand commented 4 years ago

#region API CALLS
        [HttpGet]
        public IActionResult GetAll()
        {
            var allObj = _unitOfWork.SP_Call.List<CoverType>(SD.Proc_CoverType_GetAll, null); <===[System.NullReferenceException:'Object reference not set to an instance of an object.'
]
            return Json(new { data = allObj });
        }
`