mvc3 + entityFramework 사용해서 웹사이트 개발중입니다.

초보라서, 자료 찾기도 어렵네요.

 

---Member.cs------ 

public class Member{

  public int seq_member{get;set;}

  public string id{get;set;}

  public stinrg email{get;set;}

}

 

---MemberController.cs---

public ViewResult Edit(int seq_member)
        {
            Member member = repository.Members.FirstOrDefault(p => p.Seq_member == seq_member);
            return View(member);
        }

 [HttpPost]
public ActionResult Edit(Member member)
        {
            if (ModelState.IsValid)
            {
                repository.SaveMember(member);
                TempData["message"] = string.Format("{0} has been saved", member.id);
                return RedirectToAction("Index");
            }else{
                //데이터 값에 문제가 있는 경우
                return View(member);
            }
        }

 

---EFMemberRepository.cs---

private EFDbContext context = new EFDbContext();

        public IQueryable<Member> Members
        {
            get { return context.Members; }
        }

        public void SaveMember(Member member)
        {
            if (member.Seq_member == 0)
            {
                context.Members.Add(member);
            }
            context.SaveChanges();
        }

 

---Edit.cshtml---

@using (Html.BeginForm("Edit", "Account")) {
    @Html.ValidationSummary(true)
       <div class="editor-field">
            @Html.EditorFor(model => model.ID)
            @Html.ValidationMessageFor(model => model.ID)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.Email)

            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>

}

 

위와 같이 코드를 작성했는데, Email 항목을 뷰페이지에서 텍스트박스 두개로 나눠서 DB에 인서트시키고 싶은데 방법을 잘 모르겠습니다.  도움 주세요..