private void Book_Add() { BookTypeBLL typeBLL = new BookTypeBLL(); BookTypeEntity typeEntity = new BookTypeEntity(); typeEntity.ParentId = int.Parse(Request["ParentId"]); typeEntity.TypeName = Request["TypeName"]; Response.Write(typeBLL.Add(typeEntity)); Response.End(); }
public ActionResult Add(BookType bookType) { bll.Add(bookType); return(Redirect(Url.Action("Index"))); }