我想在“保存”按钮上将数据保存在cilck上,但是什么也没有发生。
控制器
namespace eSakshiWeb.Controllers
{
public class UserRightController : Controller
{
IUserRight _IUserRight ;
public UserRightController()
{
_IUserRight = new UserRightConcrete();
}
[HttpPost]
public ActionResult UserRight(UserRight objRole )
{
objRole = new UserRight();
objRole.ListOfRoles = _IUserRight.ListofRoles();
objRole.ListofTransRole = _IUserRight.ListofTransRole();
return RedirectToAction("UserRight");
}
catch (Exception)
{
throw;
}
}
}
}
查看:-
<input type="submit" value="Save" class="btn btn-success" />