Beispiel #1
0
        public FunctionModel GetFunctioneById(int id)
        {
            var function = new FunctionModel();

            if (id > 0)
            {
                function = _functionRepository.Queryable()
                           .Where(r => r.Id == id)
                           .AsNoTracking()
                           .FirstOrDefault()
                           .ToModel();
            }
            return(function);
        }