Exemplo n.º 1
0
        // 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);
 }
Exemplo n.º 3
0
        public IHttpActionResult CreateGroup([FromBody] GroupModel model)
        {
            var op = _groupManager.CreateGroup(model);

            return(this.OperationResult(op));
        }
Exemplo n.º 4
0
 public Group CreateGroup([FromBody] Group group)
 {
     return(_groupManager.CreateGroup(group));
 }
Exemplo n.º 5
0
 public Group CreateStudents([FromBody] string groupID, string groupName, int groupSlots)
 {
     return(_groupManager.CreateGroup(groupID, groupName, groupSlots));
 }