Ejemplo n.º 1
0
        public IHttpActionResult Add(HastaneBolum model)
        {
            HastaneBolumBLL hasbolBusiness = new HastaneBolumBLL();

            hasbolBusiness.Add(model);
            return(Ok());
        }
Ejemplo n.º 2
0
 public void Add(HastaneBolum model)
 {
     using (HastaneBolumRepository hasbolumRepo = new HastaneBolumRepository())
     {
         try
         {
             hasbolumRepo.Add(model);
         }
         catch
         {
             throw;
         }
     }
 }
Ejemplo n.º 3
0
        public HastaneBolumDTO Map(HastaneBolum hasbolum)
        {
            var Bolumler = new List <HastaneBolumDTO>();

            var hasbolumdto = new HastaneBolumDTO();

            hasbolumdto.bolumAdi       = hasbolum.Bolum.bolumAdi;
            hasbolumdto.bolumID        = hasbolum.bolumID;
            hasbolumdto.hastaneBolumID = hasbolum.hastaneBolumID;
            hasbolumdto.hastaneID      = hasbolum.hastaneID;

            Bolumler.Add(hasbolumdto);

            return(hasbolumdto);
        }