public async Task <IActionResult> Add(CreateBlogDto createBlogDto) { var createBlogViewModel = CustomMapper.GetCreateBlogViewModel(createBlogDto); var validationResult = await _blogService.Add(createBlogViewModel); if (validationResult.IsValid) { return(Ok()); } return(BadRequest(validationResult.Errors)); }