public bool Update(NgoaiNguModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "NgoaiNgu_update", "@ID_NN", model.ID_NN, "@ID_GV", model.ID_GV, "@Ten_NN", model.Ten_NN, "@TrinhDo", model.TrinhDo, "@ChungChi", model.ChungChi); if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError)) { throw new Exception(Convert.ToString(result) + msgError); } return(true); } catch (Exception ex) { throw ex; } }
public bool Update(NgoaiNguModel model) { return(_res.Update(model)); }
public bool Create(NgoaiNguModel model) { return(_res.Create(model)); }
public NgoaiNguModel UpdateUser([FromBody] NgoaiNguModel model) { _NgoaiNguBLL.Update(model); return(model); }
public NgoaiNguModel CreateItem([FromBody] NgoaiNguModel model) { model.ID_NN = Guid.NewGuid().ToString(); _NgoaiNguBLL.Create(model); return(model); }