コード例 #1
0
ファイル: HomeController.cs プロジェクト: thanhpm87/dokmee
 public ActionResult Preview(string id, string cabinetId)
 {
     if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(cabinetId))
     {
         string username = User.Identity.GetUserId();
         _dokmeeService.Preview(username, id, cabinetId);
     }
     return(Json(new { }));
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: hieuntp2/dokmee-v2
        public JsonResult Preview(string id)
        {
            string cabinetId = _userService.GetCurrentCabinetId();

            if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(cabinetId))
            {
                string username = User.Identity.GetUserId();
                string url      = _dokmeeService.Preview(username, id, cabinetId);
                return(Json(new
                {
                    isError = false,
                    url = url
                }));
            }
            return(Json(new
            {
                isError = true
            }));
        }