public HttpResponseMessage Create(Domain.Medic mMedic) { HttpResponseMessage response = null; try { mMedic = medicService.SaveMedic(mMedic); response = Request.CreateResponse(HttpStatusCode.OK, mMedic); //if (IsAdminPermission()) //{ //} //else //{ // response = Request.CreateResponse(HttpStatusCode.Unauthorized); //} } catch (Exception ex) { response = Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message); } return(response); }