GetById(int id) { Response <dynamic> result2 = new Response <dynamic>(); var result = userBL.GetById(id); var x = result.Data; result2.Result = result.Result; result2.Message = result.Message; if (result.Result == Asteri.Lib.DTO.Response.Results.success) { result2.Data = new { Id = x.Id.ToString(), x.User, x.UserNames, x.UsersLastNames, x.Email, x.IsActive }; } return(Json(result2, JsonRequestBehavior.AllowGet)); }