public EntityResponse <UserDto> Get(string PushNotificationId) { var prms = new Dictionary <string, SqlParam>(); prms.Add("@PushNotificationId", new SqlParam() { Direction = System.Data.ParameterDirection.Input, SqlType = System.Data.SqlDbType.NVarChar, Value = PushNotificationId }); var result = _baseService.QueryWithMultiOutput <UserDto>("sp_GetUser", prms); var singleUser = result.Item1.ToList().SingleOrDefault(); singleUser.Groups = _grupService.GetGroupsByUserId(singleUser.Id).EntityDataList.ToList(); singleUser.UserAlarmsIds = _userAlarmsService.Get(singleUser.Id).EntityDataList.ToList(); return(new EntityResponse <UserDto>() { ResponseCode = ResponseCodes.Successful, EntityData = singleUser }); }