Exemple #1
0
 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);
        }
Exemple #4
0
 public void UpdateTODO(TODO_Inventory items)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 public TODO_Inventory AddTODO(TODO_Inventory items)
 {
     items.date_created = DateTime.Now.ToString("f");
     dict.Add(items.id.ToString(), items);
     return(items);
 }