private void LoadInfo() { var Type = _TypeRepo.GetById(id); if (Type != null) { txtName.Value = Type.NAME; txtNote.Value = Type.NOTE; } }
public string getType(object idType) { int _id = Utils.CIntDef(idType); var type = _TypeRepo.GetById(_id); if (type != null) { return(type.NAME); } return(""); }