Ejemplo n.º 1
0
        private void ResizeImgProcess(string pathImg, int id)
        {
            Task.Run(() =>
            {
                var imgsManager = new ImgsManager();
                imgsManager.ResizeImg(pathImg);

                if (ResizeImgCompleted != null) { ResizeImgCompleted(this, new EventUserId(id)); }
            });
        }
Ejemplo n.º 2
0
        public ActionResult EditUserQuery(int idParam)
        {
            var imgsManager = new ImgsManager();

            var user = _usersManager.EditUserQuery(idParam);

            var srcImgUser = imgsManager.GetUserImg(idParam);

            return Json(new
            {
                id = idParam,
                firstName = user.FirstName,
                lastName = user.LastName, 
                eMail = user.Email,
                srcImg = srcImgUser,
                ok = true
            });
        }