public HttpResponseMessage Delete(HttpRequestMessage request, int Id) { Personal UpdateEntity = new Personal(); Personal personal = personalRepo.Get().Where(a => a.PersonalID == Id).FirstOrDefault(); personal.IsDeleted = true; UpdateEntity = personalRepo.UpdatewithObj(personal); return(Request.CreateResponse <Personal>(HttpStatusCode.OK, UpdateEntity)); }