Esempio n. 1
0
        public IEnumerable <sp_CancelledTickets_Result> Get(int id) //trial used because same parameter type error for get
        {
            try
            {
                var res = db.sp_CancelledTickets(id).ToList();
                if (res == null)
                {
                    throw new Exception("No Tickets booked");
                }
                else
                {
                    return(db.sp_CancelledTickets(id).ToList());
                }


                //return db.ProjectInfoes.ToList();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }