Exemplo n.º 1
0
        public HttpResponseMessage Delete([FromUri] int id, [FromBody] int modifiedBy)
        {
            OfficeShift off = new OfficeShift();

            off.ID         = id;
            off.ModifiedBy = modifiedBy;
            return(Request.CreateResponse(HttpStatusCode.OK, off.Delete()));
        }
Exemplo n.º 2
0
 public HttpResponseMessage Save([FromBody] OfficeShift Shift)
 {
     if (Shift.ID == 0)
     {
         return(Request.CreateResponse(HttpStatusCode.OK, Shift.Save()));
     }
     else
     {
         return(Request.CreateResponse(HttpStatusCode.OK, Shift.Update()));
     }
 }
Exemplo n.º 3
0
 public HttpResponseMessage Get([FromUri] int id, [FromBody] int CompanyId)
 {
     return(Request.CreateResponse(HttpStatusCode.OK, OfficeShift.GetDetails(id, CompanyId)));
 }