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 List <PropertyOwnerDTO> Search(string OwnerFirstName, string OwnerLastName, string Phone, string Email) { List <PropertiesOwner> po = PropertyOwnerDAL.Search(OwnerFirstName, OwnerLastName, Phone, Email); return(ConvertListToDTO(po)); }
public static bool AddPropertyOwner(PropertyOwnerDTO po) { PropertiesOwner poDal = PropertyOwnerDTO.ToDal(po); return(PropertyOwnerDAL.AddPropertyOwner(poDal)); }
public static bool DeletPropertyOwner(PropertyOwnerDTO po) { PropertiesOwner poDal = PropertyOwnerDTO.ToDal(po); return(PropertyOwnerDAL.DeletePropertyOwner(poDal)); }