// GET: /Inventory/Group/CreateGroup public JsonResult CreateGroup(InvGroup aObj) { var data = _aManager.CreateGroup(aObj); // var data = _aManager.CreatAssetCategory(aObj); return(Json(new { success = data.Status, data }, JsonRequestBehavior.AllowGet)); // return null; }
public GroupsPageViewModel() { NewGroupCmd = new CommandBase(o => { var group = GroupManager.CreateGroup(); Selected = group; }, o => true); RemoveGroupCmd = new CommandBase(o => RemoveGroup(), o => selected != null); }
public IHttpActionResult CreateGroup([FromBody] GroupModel model) { var op = _groupManager.CreateGroup(model); return(this.OperationResult(op)); }
public Group CreateGroup([FromBody] Group group) { return(_groupManager.CreateGroup(group)); }
public Group CreateStudents([FromBody] string groupID, string groupName, int groupSlots) { return(_groupManager.CreateGroup(groupID, groupName, groupSlots)); }