public ResponseResult SuaPhanCongGiangVien(PhanCongGiangVienModel model) { ResponseResult res = null; try { res = PhanCongGiangVienDA.SuaPhanCongGiangVien(model); } catch (Exception ex) { throw ex; } return(res); }
public ResponseResult ThemPhanCongGiangVien(PhanCongGiangVienModel model) { ResponseResult res = null; try { model.NguoiTao = AccountUtils.CurrentUsername(); res = PhanCongGiangVienDA.ThemPhanCongGiangVien(model); } catch (Exception ex) { throw ex; } return(res); }
public ResponseResult ThemPhanCongGiangVien(PhanCongGiangVienModel model) { ResponseResult res = null; try { List <SqlParameter> listParameter = new List <SqlParameter>(); listParameter.Add(new SqlParameter("@PhanCongNhomLopID", model.PhanCongNhomLopID)); listParameter.Add(new SqlParameter("@GiangVienLogID", model.GiangVienLogID)); listParameter.Add(new SqlParameter("@HK1LT", model.HK1LT)); listParameter.Add(new SqlParameter("@HK1TH", model.HK1TH)); listParameter.Add(new SqlParameter("@HK2LT", model.HK2LT)); listParameter.Add(new SqlParameter("@HK2TH", model.HK2TH)); listParameter.Add(new SqlParameter("@NguoiTao", model.NguoiTao)); res = DBUtils.ExecuteSP <ResponseResult>("SP_PhanCongGiangVien_Them", listParameter); } catch (Exception ex) { throw ex; } return(res); }