public IHttpActionResult Get(Guid id) { if (!ModelState.IsValid) { return(this.Error().InvalidParameters()); } var salesArea = _salesAreaRepository.Find(id); return(Ok(_mapper.Map <SalesAreaModel>(salesArea))); }