GetByUser(string user) { Response <dynamic> result2 = new Response <dynamic>(); var result = userBL.GetByUser(user); 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)); }