public HttpResponseMessage Delete(long id) { ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal; EmployeeDA.DeleteEmployee(id, p.Claims); return(new HttpResponseMessage(HttpStatusCode.OK)); }
public HttpStatusCode Delete(int Id) { ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal; EmployeeDA.DeleteEmployee(Id, p.Claims); return(HttpStatusCode.OK); }
public int Delete(int id) { ClaimsPrincipal p = Request.GetRequestContext().Principal as ClaimsPrincipal; return(EmployeeDA.DeleteEmployee(id, p.Claims)); }