Beispiel #1
0
        public JsonResult DeleteUserImage()
        {
            try
            {
                RequestResult <object> response = new RequestResult <object>();
                int UserId = SessionWeb.User.UserId ?? 0;

                PersonServices PersonServ = new PersonServices();
                response = PersonServ.DeleteUserImage(UserId);

                return(Json(response, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(new RequestResult <object>()
                {
                    Status = Status.Error, Message = ex.Message
                }));
            }
        }