public void Insert(BatchTypeView batchTypeView) { using (var rep = new BatchTypeRepository()) { var batchtype = new BatchType { BatchTypeDesc = batchTypeView.BatchTypeDesc, BatchTypeid = batchTypeView.BatchTypeid }; rep.Insert(batchtype); } }
public void Update(BatchType model) { _batchTypeRepository.Update(model); }
public void Insert(BatchType model) { _batchTypeRepository.Insert(model); }
public void Delete(BatchType model) { _batchTypeRepository.Delete(model); }
private static BatchType ConvertBatchType(BatchTypeView batchTypeView) { var batchtype = new BatchType { BatchTypeid = batchTypeView.BatchTypeid, BatchTypeDesc = batchTypeView.BatchTypeDesc }; return batchtype; }