示例#1
0
        public async Task <ActionResult> Put(Site _site)
        {
            var newsite = new Models.Site()
            {
                Id        = _site.Id,
                SiteId    = _site.SiteId,
                Active    = true,
                Brgy      = _site.Brgy,
                Homing    = _site.Homing,
                Poid      = _site.Poid,
                SiteClose = false,
                SiteName  = _site.SiteName,
            };

            db.Entry(newsite).State = EntityState.Modified;
            await db.SaveChangesAsync();

            return(NoContent());
        }