コード例 #1
0
ファイル: GestionDoctors.cs プロジェクト: fdoplay/PruebaSoft
        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);
        }
コード例 #2
0
ファイル: GestionDoctors.cs プロジェクト: fdoplay/PruebaSoft
        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);
        }