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 { })); }
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 })); }