public async Task <IActionResult> IsApproved() { string machineryServiceId = HttpContext.Request.Query["MachineryServiceId"].ToString(); TblSshMachineryServicesResponse response = _iAdminHomeService.IsApproved(machineryServiceId); return(Ok(response)); }
public IActionResult IsApproved(string machineryServiceId) { var response = _adminHome.IsApproved(machineryServiceId); if (response.isSuccess == false) { return(null); } return(Ok(response)); }