public JsonResult SaveProfile(UserPersonModel parameters) { try { parameters.UserId = SessionWeb.User.UserId; if (Request.Files.Count > 0) { var File = Request.Files[0]; parameters.FileName = File.FileName; parameters.ContentType = File.ContentType; parameters.File = File.InputStream; } PersonServices PersonServ = new PersonServices(); var result = PersonServ.SaveProfile(parameters); return(Json(result)); } catch (Exception ex) { return(Json(new RequestResult <object>() { Status = Status.Error, Message = ex.Message })); } }