public IActionResult AddUpdateHorse(HorseAddRequest horseAddRequest) { string actionBy = User.Identity.Name; _mainResponse = _horseService.AddUpdateHorse(horseAddRequest, actionBy); _jsonString = Mapper.Convert <BaseResponse>(_mainResponse); return(new OkObjectResult(_jsonString)); }