public async Task <IActionResult> EditAboutUs([FromForm] AboutUsContentDTO request) { try { if (request.Id <= 0) { return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "Id not found!")); } else if (String.IsNullOrEmpty(request.TitleEN)) { return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "English Title Not Found!")); } else if (String.IsNullOrEmpty(request.TitleAR)) { return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "Arabic Title Not Found!")); } else if (String.IsNullOrEmpty(request.DescriptionEN)) { return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "English Description Not Found!")); } else if (String.IsNullOrEmpty(request.DescriptionAR)) { return(StatusCode((int)System.Net.HttpStatusCode.BadRequest, "Arabic Description Not Found!")); } else { var result = await _aboutUsRepo.UpdateAsync(request); if (result != null) { return(Ok(result)); } else { return(NoContent()); } } } catch (Exception ex) { return(StatusCode((int)System.Net.HttpStatusCode.InternalServerError, ex.Message)); } }