public IActionResult Update([FromBody] UpdateSectionDto dto) { var response = new APIResponseViewModel(); response.Status = true; response.Message = "Data Updated Sucess"; return(Ok(response)); }
public IActionResult Delete(int id) { _SectionService.Delete(id); var response = new APIResponseViewModel(); response.Status = true; response.Message = "ISection Deleted Sucess"; return(Ok(response)); }
protected APIResponseViewModel GetRespons(object data = null, string message = "Done") { var result = new APIResponseViewModel(); result.Status = true; result.Message = message; result.Data = data; return(result); }
public IActionResult Create([FromBody] CreateInformationDto dto) { var response = new APIResponseViewModel(); response.Status = true; response.Message = "Data Retrive Sucess"; return(Ok(response)); }
protected APIResponseViewModel GetExceptionResponse(string message) { var result = new APIResponseViewModel() { Status = false, Message = message, Data = null }; return(result); }
protected APIResponseViewModel GetResponse(object data = null, string message = "Done") { var result = new APIResponseViewModel() { Status = true, Message = message, Data = data }; return(result); }