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))); } }
public async Task <ActionResult> ActiveService(ServiceModel service) { try { return(new JsonResult(await _servicerepo.LogicalAvailable(service.S_Id, true))); } catch (Exception ex) { return(null); } }
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))); } }
public async Task <ActionResult> AciveDepartment(DepartmentModel dp) { try { return(new JsonResult(await _departmentrepo.LogicalAvailable(dp.D_Id, true))); } catch (Exception ex) { return(null); } }