public async Task <IActionResult> GetAllAttachments([FromBody] GetAllAttachmentsRequest request) { return(await MethodWrapper(async (param) => { var articles = await Context.Attachments?.ToListAsync(); if (articles == null) { return NotFound(); } return Ok(articles); }, request)); }
public IHttpActionResult GetAll(GetAllAttachmentsRequest request) { var data = _attachmentManipulation.GetAllAttachments(); if (data == null) { return(NotFound()); } return(Ok(new GetAllAttachmentsResponse() { Data = data, Success = Common.Enumerations.ResponseStatus.Succeeded })); }