public async Task <Object> AddJob(JobFlexoModel jobModel) { JobFlexo job = new JobFlexo //nema brOtpremnice i filepaths ucitan { JobName = jobModel.JobName, IsDone = false, CourierIncluded = jobModel.CourierIncluded, FileShortening = jobModel.FileShortening, MaterialType = jobModel.MaterialType, Montage = jobModel.Montage, Liniature = jobModel.Liniature, Note = jobModel.Note, ObimValjka = jobModel.ObimValjka, OrderedTime = DateTime.Now, OverprintBlack = jobModel.OverprintBlack, PolymerThicknessId = jobModel.PolymerThicknessId, Prepress = jobModel.Prepress, RollWidth = jobModel.RollWidth, SeparationSum = jobModel.SeparationSum, ServiceId = jobModel.ServiceId }; var result = _repo.AddJob(job); return(result); }
public async Task <Object> AddJobFlexo(JobFlexoModel model) { _unitOfWork = new UnitOfWork(_context); try { var result = _unitOfWork.JobFlexoService.AddJob(model); return(Ok(result)); } catch (Exception ex) { throw ex; } }