Beispiel #1
0
        public ListFieldForListVm GetAllFieldForList(string userId)
        {
            var fields    = _fieldRepository.GetAllFields(userId).ProjectTo <FieldForListVm>(_mapper.ConfigurationProvider).ToList();
            var fieldList = new ListFieldForListVm()
            {
                Count  = fields.Count,
                Fields = fields
            };

            return(fieldList);
        }