Beispiel #1
0
        public bool Save(Domain.Soft.doctors doc)
        {
            bool result = false;

            Infraestructura.Soft.Repository.RepositoryDoctors ss = new Infraestructura.Soft.Repository.RepositoryDoctors();
            result = ss.Save(doc);
            return(result);
        }
Beispiel #2
0
        public bool Save(List <Domain.Soft.doctors> doctor)
        {
            bool result = false;

            Infraestructura.Soft.Repository.RepositoryDoctors ss = new Infraestructura.Soft.Repository.RepositoryDoctors();
            foreach (var doc in doctor)
            {
                doc.idspecialties = doc.specialty_field.id;
                result            = ss.Save(doc);
            }
            return(result);
        }