public HttpResponseMessage Delete(long id)
        {
            ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal;

            EmployeeDA.DeleteEmployee(id, p.Claims);
            return(new HttpResponseMessage(HttpStatusCode.OK));
        }
Beispiel #2
0
        public HttpStatusCode Delete(int Id)
        {
            ClaimsPrincipal p = RequestContext.Principal as ClaimsPrincipal;

            EmployeeDA.DeleteEmployee(Id, p.Claims);
            return(HttpStatusCode.OK);
        }
Beispiel #3
0
        public int Delete(int id)
        {
            ClaimsPrincipal p = Request.GetRequestContext().Principal as ClaimsPrincipal;

            return(EmployeeDA.DeleteEmployee(id, p.Claims));
        }