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); }
public static bool AddPropertyOwner(PropertyOwnerDTO po) { PropertiesOwner poDal = PropertyOwnerDTO.ToDal(po); return(PropertyOwnerDAL.AddPropertyOwner(poDal)); }