Beispiel #1
0
        public async Task ModifiedAsync(SinifRequest sinifRequest, int sinifId)
        {
            var sinif = await _sinifRepository.GetAsync(sinifId);

            sinif.Ad           = sinifRequest.Ad;
            sinif.Kontenjan    = sinifRequest.Kontenjan;
            sinif.ModifiedDate = DateTime.Now;
            await _sinifRepository.ModifiedAsync(sinif);
        }
Beispiel #2
0
        public async Task AddAsync(SinifRequest sinifRequest)
        {
            Models.Sinif sinif = new Models.Sinif()
            {
                Ad           = sinifRequest.Ad,
                Kontenjan    = sinifRequest.Kontenjan,
                CreatedDate  = DateTime.Now,
                ModifiedDate = DateTime.Now
            };

            await _sinifRepository.AddAsync(sinif);
        }
Beispiel #3
0
 public async Task PostModified([FromBody] SinifRequest sinifRequest, int sinifId)
 {
     await _sinifBusiness.ModifiedAsync(sinifRequest, sinifId);
 }
Beispiel #4
0
 public async Task Post([FromBody] SinifRequest sinifRequest)
 {
     await _sinifBusiness.AddAsync(sinifRequest);
 }