public void DeleteCUL(CUL cul) { cULsRepository.Delete(cul.AutoMapObject <CUL, DB.CUL>()); }
public int InsertCUL(CUL cul) { var res = cULsRepository.Insert(cul.AutoMapObject <CUL, DB.CUL>()); return(res.CULId); }
public void UpdateCUL(CUL cul) { var original = cULsRepository.GetById(c => c.CULId == cul.CULId); cULsRepository.Update(original, cul.AutoMapObject <CUL, DB.CUL>()); }