Beispiel #1
0
        public void AddField(NewFieldVm newField, int landId, string userId)
        {
            var field = _mapper.Map <Field>(newField);

            field.LandId = landId;
            field.UserId = userId;
            _genericRepository.Add <Field>(field);
            _landRepository.ChangeAcreageOccupied(field.Acreage, landId);
        }