public async Task <JsonResult> GetGDInformationByStatus(int statusId) { string userName = User.Identity.Name; var user = await _userManager.FindByNameAsync(userName); IEnumerable <GDInformation> gdInfo = new List <GDInformation>(); //if (statusId == 0 && id==0) //{ // gdInfo = await lostAndFoundService.GetAllGDInformation(); //} //else if(statusId == 0 && id == 0) //{ gdInfo = await lostAndFoundService.GetAllGDInformationByStatus(user.Id, statusId); //} return(Json(gdInfo)); }