public async Task <IActionResult> UpdateEbook(EbookUpdateModel model) { var username = ApplicationUtility.GetTokenAttribute(Request.Headers["Authorization"], "sub"); var service = new PublisherRepositoryService(connString); await service.UpdateEbook(model, username); var response = new GenericResponse <string>() { IsSuccess = true, Message = "Ebook updated successfully.", ResponseCode = 200, Result = "Success" }; return(Ok(response)); }