Ejemplo n.º 1
0
        public IHttpActionResult Post(string username)
        {
            try
            {
                _cartRepo.AddByUserName(username);
            }
            catch
            {
                return(InternalServerError());
            }

            return(Ok(_cartRepo.GetByUserName(username)));
        }