예제 #1
0
        public void UpdatePropertyLend(PropertyLend p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            _propertyLendRepository.Update(p);
            _eventPublisher.EntityUpdated(p);
        }
예제 #2
0
        public void DeletePropertyLend(PropertyLend p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            p.Deleted = true;
            UpdatePropertyLend(p);
        }
예제 #3
0
 public static PropertyLend ToEntity(this PropertyLendModel createmodel, PropertyLend destination)
 {
     return(createmodel.MapTo(destination));
 }
예제 #4
0
 public static PropertyLendApproveListModel ToListModel(this PropertyLend entity)
 {
     return(entity.MapTo <PropertyLend, PropertyLendApproveListModel>());
 }
예제 #5
0
 public static PropertyLendModel ToModel(this PropertyLend entity)
 {
     return(entity.MapTo <PropertyLend, PropertyLendModel>());
 }