public TODO_Inventory UpdateStatus(TODO_Inventory items) { if (dict.ContainsKey(items.id.ToString())) { dict.Remove(items.id.ToString()); dict.Add(items.id.ToString(), items); } return(items); }
public ActionResult <TODO_Inventory> AddItems(TODO_Inventory items) { var inventory = _service.AddTODO(items); if (inventory == null) { return(NotFound()); } return(inventory); }
public ActionResult <TODO_Inventory> UpdateStatus(TODO_Inventory items) { var inventory = _service.UpdateStatus(items); if (inventory == null) { return(NotFound()); } return(inventory); }
public void UpdateTODO(TODO_Inventory items) { throw new NotImplementedException(); }
public TODO_Inventory AddTODO(TODO_Inventory items) { items.date_created = DateTime.Now.ToString("f"); dict.Add(items.id.ToString(), items); return(items); }