public Client Add(Client Client)
        {
            var ClientDac = new ClientDAC();

            Client.CreatedBy = CreatedBy;
            Client.CreatedOn = CreatedOn;
            Client.ChangedBy = ChangedBy;
            Client.ChangedOn = ChangedOn;
            return(ClientDac.Create(Client));
        }
Beispiel #2
0
        public Client Add(Client client)
        {
            Dictionary <string, string> filters = new Dictionary <string, string>();

            filters.Add("Email", client.Email);

            List <Client> clients = dac.ReadyByFilters(filters);

            if (clients != null && clients.Count > 0)
            {
                //Existe un doctor ya con esos datos
                return(client);
            }


            Client result = default(Client);

            result = dac.Create(client);
            return(result);
        }
Beispiel #3
0
        /// <summary>
        /// Add method.
        /// </summary>
        /// <param name="client"></param>
        /// <returns></returns>
        public Client Add(Client client)
        {
            var clientDac = new ClientDAC();

            return(clientDac.Create(client));
        }