public ActionResult Create(Employee obj)
 {
     var success = DataProvider.Instance.Addresses.Add(obj.Address);
     if (success)
     {
         var address = DataProvider.Instance.Addresses.GetAll().LastOrDefault();
         obj.AddressId = address.Id;
         obj.EmpCode = GenerateRandomString(5);
         var result = DataProvider.Instance.Employees.Add(obj);
     }
     return RedirectToAction("Index");
 }
 public ActionResult Edit(Employee employee)
 {
     var entity = DataProvider.Instance.Employees.Update(employee);
     return View();
 }