public JsonResult CreateDirectory([FromBody] DirCreateData data) { var result = directoryService.CreateApi(data.parentDirId, data.directoryName, User.Identity.Name); return(new JsonResult(result)); }