Example #1
0
        public string ChangeStatus(int id)
        {
            var jedi   = jediService.GetById(id);
            var result = jediService.ChangeStatus(id, !jedi.Status);

            if (result)
            {
                return(Messages.ChangeStatusJedi);
            }
            return(Messages.Error);
        }
Example #2
0
        private List <Jedi> GetJedis(List <OrdersHolograms> ordersHolograms)
        {
            var jedis = new List <Jedi>();

            foreach (var orders in ordersHolograms)
            {
                var jedi = jediService.GetById(orders.JediId);
                jedis.Add(jedi);
            }
            return(jedis);
        }