public bool Create(LoaiVanBanModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "lvb_create", "@loaivanbanid", model.loaivanbanid, "@tenloaivanban", model.tenloaivanban, "@mota", model.mota); 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 LoaiVanBanModel UpdateLvb([FromBody] LoaiVanBanModel model) { _loaivbBusiness.Update(model); return(model); }
public LoaiVanBanModel CreateLvb([FromBody] LoaiVanBanModel model) { model.loaivanbanid = Guid.NewGuid().ToString(); _loaivbBusiness.Create(model); return(model); }
public bool Update(LoaiVanBanModel model) { return(_res.Update(model)); }
public bool Create(LoaiVanBanModel model) { return(_res.Create(model)); }