Esempio n. 1
0
        public void UpdatePropertyAllot(PropertyAllot p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            _propertyAllotRepository.Update(p);
            _eventPublisher.EntityUpdated(p);
        }
Esempio n. 2
0
        public void DeletePropertyAllot(PropertyAllot p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            p.Deleted = true;
            UpdatePropertyAllot(p);
        }
Esempio n. 3
0
 public static PropertyAllot ToEntity(this PropertyAllotModel createmodel, PropertyAllot destination)
 {
     return(createmodel.MapTo(destination));
 }
Esempio n. 4
0
 public static PropertyAllotApproveListModel ToListModel(this PropertyAllot entity)
 {
     return(entity.MapTo <PropertyAllot, PropertyAllotApproveListModel>());
 }