예제 #1
0
        public ActionResult CreateCube(CreateCubeRequest req)
        {
            CreateCubeResponse response = new CreateCubeResponse();
            CubeModel          model    = new CubeModel()
            {
                name         = req.Name,
                IsActive     = true,
                CreatedDate  = DateTime.Now,
                ModifiedDate = DateTime.Now
            };
            var res = model.CreateCube(model, req.UserId, dbFactory);

            response.name      = req.Name;
            response.id        = res;
            response.userid    = req.UserId;
            response.IsSuccess = true;
            return(Json(response));
        }