public async Task<ActionResult> Redigera(Office office)
 {
     if (ModelState.IsValid)
     {
         db.Entry(office).State = EntityState.Modified;
         await db.SaveChangesAsync();
         return RedirectToAction("Index");
     }
     return View(office);
 }
        public async Task<ActionResult> Skapa(Office office)
        {
            if (ModelState.IsValid)
            {
                office.CreatedOn = DateTime.Now;
                db.Offices.Add(await office.AssignValuesAsync(db));
                await db.SaveChangesAsync();
                return RedirectToAction("Index");
            }

            return View(office);
        }