public async Task <IHttpActionResult> Get() { try { var result = await _repo.GetAllSidesAsync(); var mapped = _mapper.Map <IEnumerable <SideModel> >(result); return(Ok(mapped)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }