コード例 #1
0
 public async Task <IActionResult> DisableHeaderNotify(HeaderNotificationModel hnm)
 {
     try
     {
         return(new JsonResult(await _headernotifyrepo.LogicalAvailable(hnm.H_Id, false)));
     }
     catch (Exception ex)
     {
         return(new JsonResult(ResponseModel.ServerInternalError(data: ex)));
     }
 }
コード例 #2
0
 public async Task <ActionResult> ActiveService(ServiceModel service)
 {
     try
     {
         return(new JsonResult(await _servicerepo.LogicalAvailable(service.S_Id, true)));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
コード例 #3
0
 public async Task <IActionResult> DisableFaq(FaqModel hnm)
 {
     try
     {
         return(new JsonResult(await _faqrepo.LogicalAvailable(hnm.FA_Id, false)));
     }
     catch (Exception ex)
     {
         return(new JsonResult(ResponseModel.ServerInternalError(data: ex)));
     }
 }
コード例 #4
0
 public async Task <ActionResult> AciveDepartment(DepartmentModel dp)
 {
     try
     {
         return(new JsonResult(await _departmentrepo.LogicalAvailable(dp.D_Id, true)));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }