Exemplo n.º 1
0
        public bool Create(HD_SinhVien_NCKHModel model)
        {
            string msgError = "";

            try
            {
                var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "HD_SinhVien_NCKH_create",
                                                                              "@ID_HDSV", model.ID_HDSV,
                                                                              "@Ten_DeTai", model.Ten_DeTai,
                                                                              "@Cap_ThucHien", model.Cap_ThucHien,
                                                                              "@TG_BD", model.TG_BD,
                                                                              "@TG_KT", model.TG_KT,
                                                                              "@TinhTrang", model.TinhTrang,
                                                                              "@KetQua", model.KetQua
                                                                              );
                if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError))
                {
                    throw new Exception(Convert.ToString(result) + msgError);
                }
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
 public HD_SinhVien_NCKHModel UpdateUser([FromBody] HD_SinhVien_NCKHModel model)
 {
     _HD_SinhVien_NCKHBLL.Update(model);
     return(model);
 }
Exemplo n.º 3
0
 public HD_SinhVien_NCKHModel CreateItem([FromBody] HD_SinhVien_NCKHModel model)
 {
     model.ID_HDSV = Guid.NewGuid().ToString();
     _HD_SinhVien_NCKHBLL.Create(model);
     return(model);
 }
Exemplo n.º 4
0
 public bool Update(HD_SinhVien_NCKHModel model)
 {
     return(_res.Update(model));
 }
Exemplo n.º 5
0
 public bool Create(HD_SinhVien_NCKHModel model)
 {
     return(_res.Create(model));
 }