public async Task <IActionResult> Get(int id)
        {
            if (id < 0)
            {
                return(BadRequest());
            }

            string email = Helper.GetEmail(HttpContext);
            var    item  = await _repo.GetItem(id, email);

            if (item == null)
            {
                return(NotFound());
            }

            return(Ok(item));
        }
 public ActionResult AddOrEdit(int id = 0)
 {
     return(View(_itemsRepo.GetItem(id)));
 }