public static void UpdateItemUnit(APIItemUnit e) { var editModel = ItemUnitList.GetData().First(i => i.Code == e.Code); editModel.Code = e.Code; editModel.Name = e.Name; editModel.Description = e.Description; }
public static void DeleteItemUnit(string e) { var deleteItemUnit = ItemUnitList.GetData().First(i => i.Code == e); ItemUnitList.GetData().Remove(deleteItemUnit); }
public static void AddItemUnit(APIItemUnit e) { ItemUnitList.GetData().Add(e); }