public IActionResult Status(long id, bool isStatus) { try { DAManangeNotify dAManangeNotify = new DAManangeNotify(); return(this.OKResponse(dAManangeNotify.StatusEmail(_context, id, isStatus, User.ToAppUser()) == true ? (isStatus == true ? "Active Successfully" : "InActive Successfully") : "Failed to Update")); } catch (DataValidationException ex) { return(this.KnowOperationError(ex.Message)); } }
public IActionResult EditSms([FromBody] ManageSMSOption manageSMSOption) { try { Validator.validateSMS(manageSMSOption); DAManangeNotify dAManangeNotify = new DAManangeNotify(); return(this.OKResponse(dAManangeNotify.EditSms(_context, manageSMSOption, User.ToAppUser()) ? "Updated Successfully" : "Updation Failed")); } catch (DataValidationException ex) { return(this.KnowOperationError(ex.Message)); } }
public IActionResult ListSms() { DAManangeNotify dAManangeNotify = new DAManangeNotify(); return(this.OK <List <ManageSMSOption> >(dAManangeNotify.ListSms(_context))); }
public IActionResult GetbyId(long id) { DAManangeNotify dAManangeNotify = new DAManangeNotify(); return(this.OK <ManageEmailOption>(dAManangeNotify.GetbyEmailId(_context, id))); }