Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public ActionResult Edit([Bind(Exclude = "photo")] Author author, HttpPostedFileBase photo) { if (author.Id != 0) { authorRepository.UpdateAuthor(author, photo); } else { authorRepository.AddNewAuthor(author, photo); } return(Redirect("index")); }