public HttpResponseMessage PhoneTypeGetAll() { try { ItemsResponse <PhoneTypeViewModel> resp = new ItemsResponse <PhoneTypeViewModel>(); resp.Items = _profileDataService.PhoneTypeGetAll(); log.Info("ProfileData GetAll PhoneType Success"); return(Request.CreateResponse(HttpStatusCode.OK, resp)); } catch (Exception ex) { log.Error("ProfileData GetAll PhoneType Error", ex); return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }