public bool editDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status) { BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController(); if (BL.editDelegate(EmpID, DeptID, StartDate, EndDate, Status)) { OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse; response.StatusCode = HttpStatusCode.OK; return(true); } else { OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse; response.StatusCode = HttpStatusCode.NotAcceptable; return(false); } }
public bool editDelegate(string EmpID, string DeptID, string StartDate, string EndDate, string Status) { BusinessLogic.DelegateController BL = new BusinessLogic.DelegateController(); if (BL.editDelegate(EmpID, DeptID,StartDate,EndDate,Status)) { OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse; response.StatusCode = HttpStatusCode.OK; return true; } else { OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse; response.StatusCode = HttpStatusCode.NotAcceptable; return false; } }