public ActionResult Edit(FranchiseeModel model, int id) { if (ModelState.IsValid) { var fran = jlService.GetFranchisee(id); fran.Address = model.Address; fran.ApplyTime = model.ApplyTime ?? DateTime.Now; fran.Email = model.Email; fran.Name = model.Name; fran.Phone = model.Phone; fran.Weixin = model.Weixin; fran.Status = model.Status; jlService.UpdateFranchisee(fran); ViewData.Add("ResultObject", ResultObject.Succeed()); } return(View()); }