Пример #1
0
        public List <Administration> GetAll()
        {
            try
            {
                getDatalayer = new LiteDbAdministrationDataMapper();
                var data = getDatalayer.GetAll();

                return(data);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
Пример #2
0
        public bool Update(Administration item)
        {
            try
            {
                getDatalayer = new LiteDbAdministrationDataMapper();
                if (item != null && item.Id > 0)
                {
                    getDatalayer.Update(item);
                }

                return(true);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }