public HttpResponseMessage GetSheets() { List <PrintingSheetDTO> printingSheetDTOs = new List <PrintingSheetDTO>(); printingSheetDTOs = PrintingSheetLogic.GetSheets(); if (printingSheetDTOs != null) { return(Request.CreateResponse(HttpStatusCode.OK, printingSheetDTOs)); } else { return(Request.CreateResponse(HttpStatusCode.NotFound)); } }
public HttpResponseMessage RemoveSheet(int sizeId) { PrintingSheetLogic.DeleteSheet(sizeId); return(Request.CreateResponse(HttpStatusCode.OK)); }
public HttpResponseMessage UpdateSheet(PrintingSheetDTO printingSheet) { PrintingSheetLogic.UpdateSheet(printingSheet); return(Request.CreateResponse(HttpStatusCode.OK)); }