Exemple #1
0
        public static bool AddPropertyOwner(PropertyOwnerDTO pod)
        {
            PropertiesOwner poDal = PropertyOwnerDTO.ToDal(pod);
            int             id    = PropertyOwnerDAL.AddPropertyOwner(poDal);

            if (id != 0)
            {
                if (pod.Dock != null)
                {
                    Document doc = new Document();
                    doc.DocCoding = pod.Dock;
                    doc.DocUser   = id;
                    doc.type      = 2;
                    doc.DocName   = pod.DocName;
                    DocumentBL.AddUserDocuments(new DocumentDTO(doc));
                }
                return(true);
            }
            return(false);
        }
Exemple #2
0
        public static bool AddPropertyOwner(PropertyOwnerDTO po)
        {
            PropertiesOwner poDal = PropertyOwnerDTO.ToDal(po);

            return(PropertyOwnerDAL.AddPropertyOwner(poDal));
        }
Exemple #3
0
        public static bool DeletPropertyOwner(PropertyOwnerDTO po)
        {
            PropertiesOwner poDal = PropertyOwnerDTO.ToDal(po);

            return(PropertyOwnerDAL.DeletePropertyOwner(poDal));
        }