Beispiel #1
0
 public void CreateLguProfile(LguProfileModel model)
 {
     _repoLguProfile.AddAsync(new LguProfile
     {
         LguAddress  = model.LguAddress,
         LguLocation = model.LguLocation,
         LguLogoPath = model.LguLogoPath,
         LguName     = model.LguName,
         LguQrCode   = model.LguQrCode,
         DateCreated = DateTime.Now
     });
 }
        // PUT api/<BarangayController>/5

        public void Put(LguProfileModel model)
        {
            _lguprofile.UpdateLguProfile(model);
        }
 public void Post(LguProfileModel model)
 {
     _lguprofile.CreateLguProfile(model);
 }