public HttpResponseMessage Put(Password NewPas) { HttpResponseMessage response = null; Employee emp = new Employee(); emp = OrganisationDA.CheckCredentialsME(NewPas.Login, NewPas.OldPassword); if (emp != null) { EmployeeDA.ChangePassword(NewPas); response = Request.CreateResponse(HttpStatusCode.OK); } else { response = new HttpResponseMessage(HttpStatusCode.NotFound); } return(response); }